import exp from "constants"
import request from "../utils/request.js"

export function getRregister(params) {
	return request("/user/register", "post", params)
}

export function getLogin(params) {
	return request("/user/login", "post", params)
}

export function getSms(params){
		return request("/sms/get_sms", "post", params)
}

export function getUser(params){
		return request("/user/get_user", "post", params)
}
// 小区
export function getResidential(){
		return request("/village/get_residential", "get")
}
// 楼栋
export function getBuilding(params){
		return request("/building/get_building/"+params, "get")
}
// 单元
export function getUnit(params){
		return request("/unit/get_unit/"+params, "get")
}
// 门牌号
export function getDoorplate(params){
		return request("/doorplate/get_doorplate/"+params, "get")
}
// 绑定门牌号

export function bind_doorplate(params){
	return request('/user/bind_doorplate/'+params,"get")
}